package com.cloud.model;

import com.cloud.base.BaseEntity;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;

@Entity
@Table(name = "tb_opus")
@EntityListeners(AuditingEntityListener.class)
public class Opus extends BaseEntity{
    private String content;
    private String opusImgUrl;
    @ManyToOne
    @JoinColumn(name = "opus_id")
    private OpusType opusType;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getOpusImgUrl() {
        return opusImgUrl;
    }

    public void setOpusImgUrl(String opusImgUrl) {
        this.opusImgUrl = opusImgUrl;
    }

    public OpusType getOpusType() {
        return opusType;
    }

    public void setOpusType(OpusType opusType) {
        this.opusType = opusType;
    }
}
